package com.qk.common.enums;

/**
 * @author 上官徵羽
 * @version 1.0
 * @since 2025-10-10 16:19
 */
public enum ParamEnum implements  Code{
    USER_NOT_EXIST("用户不存在", 10001),
    PARAM_ERROR("参数错误", 10002),
    WRONG_ACCOUNT_OR_PASSWORD("用户名或密码错误", 10003),
    THE_USERNAME_OR_PASSWORD_CANNOT_BE_EMPTY("用户名或密码不能为空", 10004),
    USER_IS_STOP("用户已停用", 10005),
    DEPARTMENT_NAME_ALREADY_EXISTS("部门已存在", 10006),
    ROLE_NAME_ALREADY_EXISTS("角色已存在", 10007),
    OPERATE_ERROR("操作失败", 10008),
    PHONE_EXIST("手机号重复", 10009);

    private final String msg;
    private final int code;
    ParamEnum(String msg, int code) {
        this.msg = msg;
        this.code = code;
    }
    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
